/ Gitolite Access Config
- ssh_server_domain   = RedmineGitHosting::Config.get_setting(:ssh_server_domain)
- http_server_domain  = RedmineGitHosting::Config.get_setting(:http_server_domain)
- https_server_domain = RedmineGitHosting::Config.get_setting(:https_server_domain)
- http_server_subdir  = RedmineGitHosting::Config.get_setting(:http_server_subdir)

- gitolite_http_by_default   = RedmineGitHosting::Config.get_setting(:gitolite_http_by_default)
- show_repositories_url      = RedmineGitHosting::Config.get_setting(:show_repositories_url, true)
- gitolite_daemon_by_default = RedmineGitHosting::Config.get_setting(:gitolite_daemon_by_default, true)
- download_revision_enabled  = RedmineGitHosting::Config.get_setting(:download_revision_enabled, true)

%h3= l(:label_gitolite_access_config)

%p
  %label= l(:label_ssh_server_domain)
  = text_field_tag 'settings[ssh_server_domain]', ssh_server_domain, size: 60
  %br
  %em
    = surround '(', ')' do
      = l(:label_default_domain_name) + ' :'
      = Setting.host_name.split('/').first

%p
  %label= l(:label_http_server_domain)
  = text_field_tag 'settings[http_server_domain]', http_server_domain, size: 60
  %br
  %em
    = surround '(', ')' do
      = l(:label_default_domain_name) + ' :'
      = Setting.host_name.split('/').first

%p
  %label= l(:label_https_server_domain)
  = text_field_tag 'settings[https_server_domain]', https_server_domain, size: 60
  %br
  %em
    = surround '(', ')' do
      = l(:label_https_server_domain_desc)

%p
  %label= raw l(:label_http_server_subdir)
  = text_field_tag 'settings[http_server_subdir]', http_server_subdir, size: 60

%p
  %label= l(:label_gitolite_http_by_default)
  = select_tag 'settings[gitolite_http_by_default]', options_for_select(RepositoryGitExtra::SMART_HTTP_OPTIONS, gitolite_http_by_default)

%p
  %label= l(:label_show_repositories_url)
  = bootstrap_switch_tag do
    = hidden_field_tag 'settings[show_repositories_url]', 'false'
    = check_box_tag 'settings[show_repositories_url]', show_repositories_url, show_repositories_url

%p
  %label= l(:label_gitolite_daemon_by_default)
  = bootstrap_switch_tag do
    = hidden_field_tag 'settings[gitolite_daemon_by_default]', 'false'
    = check_box_tag 'settings[gitolite_daemon_by_default]', gitolite_daemon_by_default, gitolite_daemon_by_default

%p
  %label= l(:label_gitolite_download_revision_enabled)
  = bootstrap_switch_tag do
    = hidden_field_tag 'settings[download_revision_enabled]', 'false'
    = check_box_tag 'settings[download_revision_enabled]', download_revision_enabled, download_revision_enabled
